package core.actions;

import java.awt.Point;

import core.*;
import core.units.Unit;
import core.weapons.*;


public class MoveHero extends Action {
	
	public MoveHero(){
		super();
		name="Move";
		imageName="iconMove3.png";
		color = ActionConstants.moveColor;
		nameChar='M';
		needDir=true;
		needPos=true;
		range = 500000;
		value=0;
	}
	
	public void execute(){
		//Player master = PlayerIdHandler.getPlayer(masterId);
		master.getHero().setTarget(inputPoint);
		System.out.println("Moving");
		hasPos=false;
		hasDir=false;
	}
}
